<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人资料</title>
    <link href="../css/Own_Mes.css" rel="stylesheet" />
    <script src="../js/jquery-2.1.1.min.js"></script>
</head>
<body>
    <div id="containner">
        <div id="content1">
            <div id="left1">
                <img src="../img/user_img/0.jpg" height="100" width="100">
            </div>
            <div id="right1">
                <div id="banner1"><input type="text" class="input1" id="UserName"></div>
                <div id="footer1"><input type="text" class="input2" id="ID"></div>
            </div>
        </div>
        <div id="content2">
            <div id="content3">
                <div id="left2">
                    <div class="banner"><input type="text" class="input3" id="Sno"></div>
                    <div class="footer"><input type="text" class="input3" id="QQ"></div>
                </div>
                <div id="right2">
                    <div class="banner"><input type="text" class="input3" id="Sex"></div>
                    <div class="footer"><input type="text" class="input3" id="Phone"></div>
                </div>
                <div id="footer2">
                    <p>个性签名：</p>
                    <textarea class="input4" id="Intro"></textarea>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        $(document).ready(function ()
        {
            var message = JSON.parse(sessionStorage.getItem("head_message"));

            var UserName = message.username;
            document.getElementById('UserName').value = UserName;
            var ID = "ID："+message.Uid;
            document.getElementById('ID').value = ID;
            var HeadImg = message.headimg;
            var Sno = "学号："+message.name;
            document.getElementById('Sno').value = Sno;
            var Sex = "性别："+message.sex;
            document.getElementById('Sex').value = Sex;
            var QQ = "Q Q："+message.QQ;
            document.getElementById('QQ').value = QQ;
            var Phone = "手机号："+message.phone;
            document.getElementById('Phone').value = Phone;
            var Intro = message.intro;

            var str1 = "<img src=\"../img/user_img/"+ HeadImg+"\" height=\"100\" width=\"100\">";
            $("#left1").empty();
            $("#left1").html(str1);
            var str2 = ""+Intro;
            $("#Intro").html(str2);
        })
    </script>

</body>
</html>
